﻿/*
Filter=CustomFilter_FileType_NXPowerLite
Tips=此函数当所选有任意数量包含 NXPowerLite 支持的文件时返回 true
Author=LL
Version=0.1
*/

CustomFilter_FileType_NXPowerLite(FileList="")
{	
    ExtNameSupported=ppt;pptx;pps;ppsx;potm;ppsm;potx;ppa;ppam;xls;xlsx;xlt;xltm;xla;xlsm;xltm;xlam;doc;docx;dot;dotm;pdf;jpg;jpeg;jpe;jif;jfi;zip
	;枚举所有支持的文件类型
	if not FileList
	{
		Global gMenuZ
		FileList=% gMenuZ.Data.files
	}
	Result:=false ;先假定为假
	;~ IfInString,FileList,`n
	{
		Loop, Parse, FileList, `n, `r
		{
			FileAttrib:=FileExist(A_LoopField)
			IfInString,FileAttrib,D
			{
				Result:=true
				break
			}
            SplitPath, A_LoopField, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive
            IfInString, ExtNameSupported, %OutExtension%
            {
				Result:=true
				break
            }
		}
	}
	Return Result
}